package com.qianji.common.exception;

/**
 * @author liang zai
 * @date 2022/5/11 17:58
 * @description
 */
public enum RabbitEnum {
    /**
     * 交换机
     */
    EXCHANGE_RABBIT("stock-event-exchange"),
    ORDER_EXCHANGE_RABBIT("order-event-exchange"),
    /**
     * 队列
     */
    ORDER_RELEASE_QUEUE_RABBIT("order.delay.queue"),
    RELEASE_QUEUE_RABBIT("stock.release.stock.queue"),
    DELAY_QUEUE_RABBIT("stock.delay.queue"),
    /**
     * 路由
     */
    ORDER_CREATE_ORDER("order.creat.order"),
    ORDER_SECKILL_ORDER("order.seckill.order"),
    ORDER_RELEASE_ORDER("order.release.order"),
    ORDER_RELEASE_OTHER("order.release.other"),
    STOCK_LOCKED("stock.locked"),
    STOCK_RELEASE("stock.release");
    private String mq;
    RabbitEnum(String mq){
        this.mq = mq;
    }
    public String getMq() {
        return mq;
    }
}
